using System;

namespace Project.ViewModels.Abstractions
{
    public abstract class DisposableViewModelBase : IViewModel, IDisposable
    {
        public virtual void Dispose() => Unsubscribe();

        protected abstract void Subscribe();
        protected abstract void Unsubscribe();
    }
}
